using System;
using System.ComponentModel;

namespace qPrintComponent
{
    public class PrinterNameConverter : TypeConverter
    {
        public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
        {
            return new TypeConverter.StandardValuesCollection(System.Drawing.Printing.PrinterSettings.InstalledPrinters);
        }
        public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
        {
            return true;
        }
    }
}
